package com.isoft.illustrationsdraw.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.isoft.illustrationsdraw.entity.ReportStatusLog;
import com.isoft.illustrationsdraw.mapper.ReportStatusLogMapper;
import com.isoft.illustrationsdraw.service.ReportStatusLogService;
import org.springframework.stereotype.Service;

@Service
public class ReportStatusLogServiceImpl extends ServiceImpl<ReportStatusLogMapper, ReportStatusLog> implements ReportStatusLogService {
    public ReportStatusLog getLogByReportId(Long id) {
        QueryWrapper<ReportStatusLog> queryWrapper = new QueryWrapper<>();

        queryWrapper.eq("report_id", id);

        return getOne(queryWrapper);
    }
}
